<template>
  <van-swipe :autoplay="3000">
    <van-swipe-item v-for="(item, index) in banner" :key="index">
      <a :href="item.link" v-lazy="item"><img :src="item.image" /></a>
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: "HomeSwipe",
  props: {
    banner: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  components: {},
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style scoped>
.van-swipe-item img {
  width: 100%;
}
</style>